package com.yxinsur.imc.business.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseEntity;

/**
 * 保单人员对象 imc_order_person
 * 
 * @author imc
 * @date 2021-03-18
 */
public class ImcOrderPerson extends BaseImcEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 保单主键 */
    private Long orderId;

    /** 保单人员类型A投保人B被保人C受益人 */
    @Excel(name = "保单人员类型A投保人B被保人C受益人")
    private String orderPersonType;

    /** 姓名/法人/负责人 */
    @Excel(name = "姓名/法人/负责人")
    private String fullName;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 职业名称 */
    @Excel(name = "职业名称")
    private String occName;

    /** 证件类型 */
    @Excel(name = "证件类型")
    private String certiType;

    /** 证件号 */
    @Excel(name = "证件号")
    private String certiCode;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 证件止期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "证件止期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date certiExpiryDate;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String mobile;

    /** 住宅电话 */
    @Excel(name = "住宅电话")
    private String houseTel;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String county;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String homeAddr;

    /** 婚姻状况 */
    @Excel(name = "婚姻状况")
    private String maritalStatus;

    /** 邮政编码 */
    @Excel(name = "邮政编码")
    private String postalcode;

    /** 通讯地址 */
    @Excel(name = "通讯地址")
    private String mailAddr;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 收入(元) */
    @Excel(name = "收入(元)")
    private Long income;

    /** 身高 */
    @Excel(name = "身高")
    private String height;

    /** 体重 */
    @Excel(name = "体重")
    private String weight;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String workUnit;

    /** 工作单位地址 */
    @Excel(name = "工作单位地址")
    private String unitAddr;

    /** 营业执照号 */
    @Excel(name = "营业执照号")
    private String bizLicense;

    /** 是否法定受益人 */
    @Excel(name = "是否法定受益人")
    private String isLegalBeneficiary;

    /** 受益顺序 */
    @Excel(name = "受益顺序")
    private String benefitOrder;

    /** 收益比例 */
    @Excel(name = "收益比例")
    private String benefitRate;

    /** 是否同投保人 */
    @Excel(name = "是否同投保人")
    private String isSameApplicant;

    /** 与投保人关系 */
    @Excel(name = "与投保人关系")
    private String relationWithApplicant;

    /** 与被保险人关系 */
    @Excel(name = "与被保险人关系")
    private String relationWithInsurant;

    /** 开户行名称 */
    @Excel(name = "开户行名称")
    private String bankName;

    /** 银行账户 */
    @Excel(name = "银行账户")
    private String account;

    /** 续期缴费银行名称 */
    @Excel(name = "续期缴费银行名称")
    private String renewalBankName;

    /** 续期银行账号 */
    @Excel(name = "续期银行账号")
    private String renewalAccount;

    /** 默认投/被保险人，用于区分多投被保险人 */
    @Excel(name = "默认投/被保险人，用于区分多投被保险人")
    private String isDefalut;

    /** $column.columnComment */
    @Excel(name = "默认投/被保险人，用于区分多投被保险人")
    private String isDeleted;

    /** $column.columnComment */
    @Excel(name = "备注")
    private String remark;

    /** 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构） */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public void setOrderPersonType(String orderPersonType)
    {
        this.orderPersonType = orderPersonType;
    }

    public String getOrderPersonType() 
    {
        return orderPersonType;
    }
    public void setFullName(String fullName) 
    {
        this.fullName = fullName;
    }

    public String getFullName() 
    {
        return fullName;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setOccName(String occName) 
    {
        this.occName = occName;
    }

    public String getOccName() 
    {
        return occName;
    }
    public void setCertiType(String certiType) 
    {
        this.certiType = certiType;
    }

    public String getCertiType() 
    {
        return certiType;
    }
    public void setCertiCode(String certiCode) 
    {
        this.certiCode = certiCode;
    }

    public String getCertiCode() 
    {
        return certiCode;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setCertiExpiryDate(Date certiExpiryDate) 
    {
        this.certiExpiryDate = certiExpiryDate;
    }

    public Date getCertiExpiryDate() 
    {
        return certiExpiryDate;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setHouseTel(String houseTel) 
    {
        this.houseTel = houseTel;
    }

    public String getHouseTel() 
    {
        return houseTel;
    }
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setCounty(String county) 
    {
        this.county = county;
    }

    public String getCounty() 
    {
        return county;
    }
    public void setHomeAddr(String homeAddr) 
    {
        this.homeAddr = homeAddr;
    }

    public String getHomeAddr() 
    {
        return homeAddr;
    }
    public void setMaritalStatus(String maritalStatus) 
    {
        this.maritalStatus = maritalStatus;
    }

    public String getMaritalStatus() 
    {
        return maritalStatus;
    }
    public void setPostalcode(String postalcode) 
    {
        this.postalcode = postalcode;
    }

    public String getPostalcode() 
    {
        return postalcode;
    }
    public void setMailAddr(String mailAddr) 
    {
        this.mailAddr = mailAddr;
    }

    public String getMailAddr() 
    {
        return mailAddr;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setIncome(Long income) 
    {
        this.income = income;
    }

    public Long getIncome() 
    {
        return income;
    }
    public void setHeight(String height) 
    {
        this.height = height;
    }

    public String getHeight() 
    {
        return height;
    }
    public void setWeight(String weight) 
    {
        this.weight = weight;
    }

    public String getWeight() 
    {
        return weight;
    }
    public void setWorkUnit(String workUnit) 
    {
        this.workUnit = workUnit;
    }

    public String getWorkUnit() 
    {
        return workUnit;
    }
    public void setUnitAddr(String unitAddr) 
    {
        this.unitAddr = unitAddr;
    }

    public String getUnitAddr() 
    {
        return unitAddr;
    }
    public void setBizLicense(String bizLicense) 
    {
        this.bizLicense = bizLicense;
    }

    public String getBizLicense() 
    {
        return bizLicense;
    }
    public void setIsLegalBeneficiary(String isLegalBeneficiary) 
    {
        this.isLegalBeneficiary = isLegalBeneficiary;
    }

    public String getIsLegalBeneficiary() 
    {
        return isLegalBeneficiary;
    }
    public void setBenefitOrder(String benefitOrder) 
    {
        this.benefitOrder = benefitOrder;
    }

    public String getBenefitOrder() 
    {
        return benefitOrder;
    }
    public void setBenefitRate(String benefitRate) 
    {
        this.benefitRate = benefitRate;
    }

    public String getBenefitRate() 
    {
        return benefitRate;
    }
    public void setIsSameApplicant(String isSameApplicant) 
    {
        this.isSameApplicant = isSameApplicant;
    }

    public String getIsSameApplicant() 
    {
        return isSameApplicant;
    }
    public void setRelationWithApplicant(String relationWithApplicant) 
    {
        this.relationWithApplicant = relationWithApplicant;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRelationWithApplicant()
    {
        return relationWithApplicant;
    }
    public void setRelationWithInsurant(String relationWithInsurant) 
    {
        this.relationWithInsurant = relationWithInsurant;
    }

    public String getRelationWithInsurant() 
    {
        return relationWithInsurant;
    }
    public void setBankName(String bankName) 
    {
        this.bankName = bankName;
    }

    public String getBankName() 
    {
        return bankName;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }
    public void setRenewalBankName(String renewalBankName) 
    {
        this.renewalBankName = renewalBankName;
    }

    public String getRenewalBankName() 
    {
        return renewalBankName;
    }
    public void setRenewalAccount(String renewalAccount) 
    {
        this.renewalAccount = renewalAccount;
    }

    public String getRenewalAccount() 
    {
        return renewalAccount;
    }
    public void setIsDefalut(String isDefalut) 
    {
        this.isDefalut = isDefalut;
    }

    public String getIsDefalut() 
    {
        return isDefalut;
    }
    public void setIsDeleted(String isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public String getIsDeleted() 
    {
        return isDeleted;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderPersonType", getOrderPersonType())
            .append("fullName", getFullName())
            .append("gender", getGender())
            .append("occName", getOccName())
            .append("certiType", getCertiType())
            .append("certiCode", getCertiCode())
            .append("birthday", getBirthday())
            .append("certiExpiryDate", getCertiExpiryDate())
            .append("mobile", getMobile())
            .append("houseTel", getHouseTel())
            .append("province", getProvince())
            .append("city", getCity())
            .append("county", getCounty())
            .append("homeAddr", getHomeAddr())
            .append("maritalStatus", getMaritalStatus())
            .append("postalcode", getPostalcode())
            .append("mailAddr", getMailAddr())
            .append("email", getEmail())
            .append("income", getIncome())
            .append("height", getHeight())
            .append("weight", getWeight())
            .append("workUnit", getWorkUnit())
            .append("unitAddr", getUnitAddr())
            .append("bizLicense", getBizLicense())
            .append("isLegalBeneficiary", getIsLegalBeneficiary())
            .append("benefitOrder", getBenefitOrder())
            .append("benefitRate", getBenefitRate())
            .append("isSameApplicant", getIsSameApplicant())
            .append("relationWithApplicant", getRelationWithApplicant())
            .append("relationWithInsurant", getRelationWithInsurant())
            .append("bankName", getBankName())
            .append("account", getAccount())
            .append("renewalBankName", getRenewalBankName())
            .append("renewalAccount", getRenewalAccount())
            .append("isDefalut", getIsDefalut())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .append("createId", getCreateId())
            .append("tenantId", getTenantId())
            .toString();
    }
}
